package com.camelot.boot.module.ai.service.chat;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.camelot.boot.framework.common.pojo.PageResult;
import com.camelot.boot.framework.common.util.object.BeanUtils;
import com.camelot.boot.module.ai.controller.admin.chat.vo.transfer.AiResumeTransferPageReqVO;
import com.camelot.boot.module.ai.controller.admin.chat.vo.transfer.AiResumeTransferVO;
import com.camelot.boot.module.ai.dal.dataobject.chat.AiResumeTransferDO;
import com.camelot.boot.module.ai.dal.mysql.chat.AiResumeTransferMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AiResumeTransferServiceImpl extends ServiceImpl<AiResumeTransferMapper, AiResumeTransferDO> implements AiResumeTransferService{

    @Resource
    private AiResumeTransferMapper aiResumeTransferMapper;

    @Override
    public PageResult<AiResumeTransferVO> page(AiResumeTransferPageReqVO pageReqVO) {
        PageResult<AiResumeTransferDO> pageResult = aiResumeTransferMapper.selectPage(pageReqVO);
        return BeanUtils.toBean(pageResult,AiResumeTransferVO.class);
    }
}
